import {request} from './index'

export  default  {
    GetArticle(current_page){
        return request({
            url:`/article/to_audit/list?current_page=${current_page}`,
            method:'get',
        })
    },
    GetArticleDetail(id){
        return request({
            url: `/article/to_audit/detail?id=${id}`,
            method: 'get',
        })
    },
    Pass(id){
        return request({
            url: `/article/audit/pass`,
            method: 'put',
            data:{
                id
            }
        })
    },
    Fail(id,audit_opinion){
        return request({
            url: '/article/audit/no_pass',
            method: 'put',
            data:{
                id,audit_opinion
            }

        })
    }

}
